<!--
*Author：DGZ
 *Contact：jiduxiong@dagongzao.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/bizappproject/plan_summary_three_location/Plan_Summary_Three_Location.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :details="details"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/bizappproject/plan_summary_three_location/Plan_Summary_Three_Location.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        name: "Plan_Summary_Three_Location",
        setup() {
            const table = ref({
                key: "Id",
                footer: "Foots",
                cnName: "三地计划汇总",
                name: "plan_summary_three_location/Plan_Summary_Three_Location",
                newTabEdit: false,
                url: "/Plan_Summary_Three_Location/",
                sortName: "Id"
            });
            const editFormFields = ref({"ProductId":"","RequirementIn4Week":"","RequirementIn5To9Week":"","InventoryMaterial":"","InventoryBlank":"","InventoryProcessCheck":"","InventoryFinal":"","UnfinishedFinalOEM":"","FianlPlan34Week":"","FianlPlan35Week":"","FianlPlan36Week":"","FianlPlan37Week":"","FianlPlan38Week":"","FianlPlan39Week":"","FianlPlan40Week":"","FianlPlan41Week":"","FianlPlan42Week":"","FianlPlan43Week":"","FianlPlan44Week":"","FianlPlan45Week":"","FianlPlan46Week":"","FianlPlan47Week":"","FianlPlan48Week":"","FianlPlan49Week":"","FianlPlan50Week":"","FianlPlan51Week":"","FianlPlan52Week":"","FianlPlan53Week":"","UnfinishedBlankOEM":"","BlankPlan34Week":"","BlankPlan35Week":"","BlankPlan36Week":"","BlankPlan37Week":"","BlankPlan38Week":"","BlankPlan39Week":"","BlankPlan40Week":"","BlankPlan41Week":"","BlankPlan42Week":"","BlankPlan43Week":"","BlankPlan44Week":"","BlankPlan45Week":"","BlankPlan46Week":"","BlankPlan47Week":"","BlankPlan48Week":"","BlankPlan49Week":"","BlankPlan50Week":"","BlankPlan51Week":"","BlankPlan52Week":"","BlankPlan53Week":""});
            const editFormOptions = ref([[{"title":"产品代码","field":"ProductId"},
                               {"title":"4周内成品需求数","field":"RequirementIn4Week","type":"decimal"},
                               {"title":"5-9周成品需求数","field":"RequirementIn5To9Week","type":"decimal"}],
                              [{"title":"内部盘点-材料","field":"InventoryMaterial","type":"decimal"},
                               {"title":"内部盘点-毛坯","field":"InventoryBlank","type":"decimal"},
                               {"title":"内部盘点-加工-检验","field":"InventoryProcessCheck","type":"decimal"},
                               {"title":"内部盘点-成品","field":"InventoryFinal","type":"decimal"}],
                              [{"title":"成品OEM订单未完成数量","field":"UnfinishedFinalOEM","type":"decimal"}],
                              [{"title":"成品34周交付计划","field":"FianlPlan34Week","type":"decimal"},
                               {"title":"成品35周交付计划","field":"FianlPlan35Week","type":"decimal"},
                               {"title":"成品36周交付计划","field":"FianlPlan36Week","type":"decimal"},
                               {"title":"成品37周交付计划","field":"FianlPlan37Week","type":"decimal"},
                               {"title":"成品38周交付计划","field":"FianlPlan38Week","type":"decimal"},
                               {"title":"成品39周交付计划","field":"FianlPlan39Week","type":"decimal"}],
                              [{"title":"成品40周交付计划","field":"FianlPlan40Week","type":"decimal"},
                               {"title":"成品41周交付计划","field":"FianlPlan41Week","type":"decimal"},
                               {"title":"成品42周交付计划","field":"FianlPlan42Week","type":"decimal"},
                               {"title":"成品43周交付计划","field":"FianlPlan43Week","type":"decimal"},
                               {"title":"成品44周交付计划","field":"FianlPlan44Week","type":"decimal"},
                               {"title":"成品45周交付计划","field":"FianlPlan45Week","type":"decimal"}],
                              [{"title":"成品46周交付计划","field":"FianlPlan46Week","type":"decimal"},
                               {"title":"成品47周交付计划","field":"FianlPlan47Week","type":"decimal"},
                               {"title":"成品48周交付计划","field":"FianlPlan48Week","type":"decimal"},
                               {"title":"成品49周交付计划","field":"FianlPlan49Week","type":"decimal"},
                               {"title":"成品50周交付计划","field":"FianlPlan50Week","type":"decimal"},
                               {"title":"成品51周交付计划","field":"FianlPlan51Week","type":"decimal"}],
                              [{"title":"成品52周交付计划","field":"FianlPlan52Week","type":"decimal"},
                               {"title":"成品53周交付计划","field":"FianlPlan53Week","type":"decimal"}],
                              [{"title":"毛坯OEM订单未完成数量","field":"UnfinishedBlankOEM","type":"decimal"}],
                              [{"title":"毛坯34周交付计划","field":"BlankPlan34Week","type":"decimal"},
                               {"title":"毛坯35周交付计划","field":"BlankPlan35Week","type":"decimal"},
                               {"title":"毛坯36周交付计划","field":"BlankPlan36Week","type":"decimal"},
                               {"title":"毛坯37周交付计划","field":"BlankPlan37Week","type":"decimal"},
                               {"title":"毛坯38周交付计划","field":"BlankPlan38Week","type":"decimal"},
                               {"title":"毛坯39周交付计划","field":"BlankPlan39Week","type":"decimal"}],
                              [{"title":"毛坯40周交付计划","field":"BlankPlan40Week","type":"decimal"},
                               {"title":"毛坯41周交付计划","field":"BlankPlan41Week","type":"decimal"},
                               {"title":"毛坯42周交付计划","field":"BlankPlan42Week","type":"decimal"},
                               {"title":"毛坯43周交付计划","field":"BlankPlan43Week","type":"decimal"},
                               {"title":"毛坯44周交付计划","field":"BlankPlan44Week","type":"decimal"},
                               {"title":"毛坯45周交付计划","field":"BlankPlan45Week","type":"decimal"}],
                              [{"title":"毛坯46周交付计划","field":"BlankPlan46Week","type":"decimal"},
                               {"title":"毛坯47周交付计划","field":"BlankPlan47Week","type":"decimal"},
                               {"title":"毛坯48周交付计划","field":"BlankPlan48Week","type":"decimal"},
                               {"title":"毛坯49周交付计划","field":"BlankPlan49Week","type":"decimal"},
                               {"title":"毛坯50周交付计划","field":"BlankPlan50Week","type":"decimal"},
                               {"title":"毛坯51周交付计划","field":"BlankPlan51Week","type":"decimal"}],
                              [{"title":"毛坯52周交付计划","field":"BlankPlan52Week","type":"decimal"},
                               {"title":"毛坯53周交付计划","field":"BlankPlan53Week","type":"decimal"}]]);
            const searchFormFields = ref({"ProductId":""});
            const searchFormOptions = ref([[{"title":"产品代码","field":"ProductId","type":"like"}]]);
            const columns = ref([{field:"Id",title:"键",type:"bigint",width:110,hidden:true,readonly:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"ProductId",title:"产品代码",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"RequirementIn4Week",title:"4周内成品需求数",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"RequirementIn5To9Week",title:"5-9周成品需求数",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"InventoryMaterial",title:"内部盘点-材料",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"InventoryBlank",title:"内部盘点-毛坯",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"InventoryProcessCheck",title:"内部盘点-加工-检验",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"InventoryFinal",title:"内部盘点-成品",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"UnfinishedFinalOEM",title:"成品OEM订单未完成数量",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"FianlPlan34Week",title:"成品34周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"FianlPlan35Week",title:"成品35周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"FianlPlan36Week",title:"成品36周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"FianlPlan37Week",title:"成品37周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"FianlPlan38Week",title:"成品38周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"FianlPlan39Week",title:"成品39周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"FianlPlan40Week",title:"成品40周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"FianlPlan41Week",title:"成品41周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"FianlPlan42Week",title:"成品42周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"FianlPlan43Week",title:"成品43周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"FianlPlan44Week",title:"成品44周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"FianlPlan45Week",title:"成品45周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"FianlPlan46Week",title:"成品46周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"FianlPlan47Week",title:"成品47周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"FianlPlan48Week",title:"成品48周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"FianlPlan49Week",title:"成品49周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"FianlPlan50Week",title:"成品50周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"UnfinishedBlankOEM",title:"毛坯OEM订单未完成数量",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"BlankPlan34Week",title:"毛坯34周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"BlankPlan35Week",title:"毛坯35周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"BlankPlan36Week",title:"毛坯36周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"BlankPlan37Week",title:"毛坯37周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"BlankPlan38Week",title:"毛坯38周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"BlankPlan39Week",title:"毛坯39周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"BlankPlan40Week",title:"毛坯40周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"BlankPlan41Week",title:"毛坯41周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"BlankPlan42Week",title:"毛坯42周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"BlankPlan43Week",title:"毛坯43周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"BlankPlan44Week",title:"毛坯44周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"BlankPlan45Week",title:"毛坯45周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"BlankPlan46Week",title:"毛坯46周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"BlankPlan47Week",title:"毛坯47周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"BlankPlan48Week",title:"毛坯48周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"BlankPlan49Week",title:"毛坯49周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"BlankPlan50Week",title:"毛坯50周交付计划",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"IsValid",title:"是否有效(0:否,1:是)",type:"int",width:110,hidden:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"Remarks",title:"备注",type:"string",width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"CreateId",title:"创建人ID",type:"bigint",width:80,hidden:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"Creator",title:"创建人名",type:"string",width:100,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"CreateTime",title:"创建时间",type:"datetime",width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyId",title:"修改人ID",type:"bigint",width:80,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"Modifier",title:"修改人名",type:"string",width:100,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyTime",title:"修改时间",type:"datetime",width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"FianlPlan51Week",title:"成品51周交付计划",type:"decimal",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"FianlPlan52Week",title:"成品52周交付计划",type:"decimal",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"FianlPlan53Week",title:"成品53周交付计划",type:"decimal",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"BlankPlan51Week",title:"毛坯51周交付计划",type:"decimal",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"BlankPlan52Week",title:"毛坯52周交付计划",type:"decimal",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"BlankPlan53Week",title:"毛坯53周交付计划",type:"decimal",width:120,showOverflowTooltip:true,align:"left"}]);
            const detail = ref(  {
                    cnName: "分厂详情",
                    table: "Plan_Summary_Single_Location",
                    columns: [{field:"Id",title:"键",type:"bigint",width:110,hidden:true,readonly:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"ProductId",title:"产品代码",type:"string",width:150,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"ProductIdInside",title:"内部代码",type:"string",width:150,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"Location",title:"厂区",type:"string",width:120,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"RequirementIn4Week",title:"4周内成品需求数",type:"decimal",width:120,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"RequirementIn5To9Week",title:"5-9周成品需求数",type:"decimal",width:120,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"InventoryMaterial",title:"内部盘点-材料",type:"decimal",width:120,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"InventoryBlank",title:"内部盘点-毛坯",type:"decimal",width:120,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"InventoryProcessCheck",title:"内部盘点-加工-检验",type:"decimal",width:120,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"InventoryFinal",title:"内部盘点-成品",type:"decimal",width:120,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"Type",title:"分类",type:"string",width:150,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"Order",title:"订单号",type:"string",width:150,edit:{type:""},require:true,showOverflowTooltip:true,align:"left"},
                       {field:"OrderCount",title:"订单数量",type:"decimal",width:110,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"OrderFinish",title:"已交订单",type:"decimal",width:110,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"OrderUnfinish",title:"未交订单",type:"decimal",width:110,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"InventoryCount",title:"存货盘点",type:"decimal",width:110,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"Plan34Week",title:"34周交付计划",type:"decimal",width:110,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"Plan35Week",title:"35周交付计划",type:"decimal",width:110,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"Plan36Week",title:"36周交付计划",type:"decimal",width:110,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"Plan37Week",title:"37周交付计划",type:"decimal",width:110,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"Plan38Week",title:"38周交付计划",type:"decimal",width:110,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"Plan39Week",title:"39周交付计划",type:"decimal",width:110,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"Plan40Week",title:"40周交付计划",type:"decimal",width:110,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"Plan41Week",title:"41周交付计划",type:"decimal",width:110,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"Plan42Week",title:"42周交付计划",type:"decimal",width:110,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"Plan43Week",title:"43周交付计划",type:"decimal",width:110,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"Plan44Week",title:"44周交付计划",type:"decimal",width:110,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"Plan45Week",title:"45周交付计划",type:"decimal",width:110,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"Plan46Week",title:"46周交付计划",type:"decimal",width:110,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"Plan47Week",title:"47周交付计划",type:"decimal",width:110,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"Plan48Week",title:"48周交付计划",type:"decimal",width:110,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"Plan49Week",title:"49周交付计划",type:"decimal",width:110,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"Plan50Week",title:"50周交付计划",type:"decimal",width:110,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"IsValid",title:"是否有效(0:否,1:是)",type:"int",width:110,hidden:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"Remarks",title:"备注",type:"string",width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"CreateId",title:"创建人ID",type:"bigint",width:80,hidden:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"Creator",title:"创建人名",type:"string",width:100,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"CreateTime",title:"创建时间",type:"datetime",width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyId",title:"修改人ID",type:"bigint",width:80,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"Modifier",title:"修改人名",type:"string",width:100,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyTime",title:"修改时间",type:"datetime",width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"Plan51Week",title:"51周交付计划",type:"decimal",width:120,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"Plan52Week",title:"52周交付计划",type:"decimal",width:120,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"Plan53Week",title:"53周交付计划",type:"decimal",width:120,edit:{type:""},showOverflowTooltip:true,align:"left"}],
                    sortName: "Id",
                    key: "Id"
                                            });
            const details = ref([]);
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
                details
            };
        },
    });
</script>
